package com.ruoyi.energize.mapper;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

    import com.ruoyi.energize.domain.CashOrder;
import com.ruoyi.energize.domain.YancaoStoreDailySalesReport;
import org.apache.ibatis.annotations.Param;

/**
 * energizeMapper接口
 *
 * @author ruoyi
 * @date 2023-05-24
 */
public interface CashOrderMapper
{
    /**
     * 查询energize
     *
     * @param id energize主键
     * @return energize
     */
    public CashOrder selectCashOrderById(Long id);

    /**
     * 查询energize列表
     *
     * @param cashOrder energize
     * @return energize集合
     */
    public List<CashOrder> selectCashOrderList(CashOrder cashOrder);

    /**
     * 新增energize
     *
     * @param cashOrder energize
     * @return 结果
     */
    public int insertCashOrder(CashOrder cashOrder);

    /**
     * 修改energize
     *
     * @param cashOrder energize
     * @return 结果
     */
    public int updateCashOrder(CashOrder cashOrder);

    /**
     * 删除energize
     *
     * @param id energize主键
     * @return 结果
     */
    public int deleteCashOrderById(Long id);

    /**
     * 批量删除energize
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCashOrderByIds(Long[] ids);

    public List<YancaoStoreDailySalesReport> selectCashOrderListByDate(@Param("dateTimeMin") LocalDateTime dateTimeMin,@Param("dateTimeMax") LocalDateTime dateTimeMax);

    public BigDecimal selectCashOrderListByOidStr(@Param("oidStringList") List<String> oidStringList);
}
